package com.black.cat.jvm.common;

/**
 * @Author blackcat
 * @create 2021/8/12 9:05
 * @version: 1.0
 * @description:常量
 */
public class CommonValue {

    //jdk的主次版本常量
    public static final int JDK_VERSION_MAJOR_02 = 46;
    public static final int JDK_VERSION_MAJOR_11 = 55;
    public static final int JDK_VERSION_MINOR_00 = 0;



    // 常量池的具体常量tag
    public static final int CONSTANT_POOL_TAG_UTF8 = 1;
    public static final int CONSTANT_POOL_TAG_INTEGER = 3;
    public static final int CONSTANT_POOL_TAG_FLOAT = 4;
    public static final int CONSTANT_POOL_TAG_LONG = 5;
    public static final int CONSTANT_POOL_TAG_DOUBLE = 6;
    public static final int CONSTANT_POOL_TAG_CLASS = 7;
    public static final int CONSTANT_POOL_TAG_STRING = 8;
    public static final int CONSTANT_POOL_TAG_FIELD_REF = 9;
    public static final int CONSTANT_POOL_TAG_METHOD_REF = 10;
    public static final int CONSTANT_POOL_TAG_INTERFACE_METHOD_REF = 11;
    public static final int CONSTANT_POOL_TAG_NAME_AND_TYPE = 12;
    public static final int CONSTANT_POOL_TAG_METHOD_HANDLE = 15;
    public static final int CONSTANT_POOL_TAG_METHOD_TYPE = 16;
    public static final int CONSTANT_POOL_TAG_INVOKE_DYNAMIC = 18;
}
